<?php if(!defined('IN_UCHOME')) exit('Access Denied'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<title>UCenter Home Control Panel</title>
<link id="mastercss" rel="stylesheet" href="admin/tpl/style.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
</head>
<body>
<div id="wrap">
<div id="header">
<h2><a href="index.php" title="<?=$_SCONFIG['sitename']?>"><img src="admin/tpl/image/logo.gif" alt="<?=$_SCONFIG['sitename']?>" /></a></h2>

<div id="topmenu" class="gray">
欢迎您，<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SGLOBAL['username']?></a> | 
<a href="space.php">我的空间</a> | 
<a href="cp.php?ac=common&op=logout">退出</a>
</div>
<?php $_TPL['menunames'] = array(
		'config' => '站点设置',
		'privacy' => '隐私设置',
		'usergroup' => '用户组',
		'credit' => '积分规则',
		'profilefield' => '用户栏目',
		'profield' => '选吧栏目',
		'censor' => '词语屏蔽',
		'ad' => '广告设置',
		'tagtpl' => '多应用设置',
		'network' => '随便看看设置',
		'cache' => '缓存更新',
		'space' => '用户管理',
		'feed' => '事件',
		'share' => '分享',
		'blog' => '日志',
		'album' => '相册',
		'pic' => '图片',
		'comment' => '评论',
		'thread' => '话题',
		'post' => '回帖',
		'doing' => '迷你博客',
		'tag' => '标签',
		'mtag' => '选吧',
		'block' => '数据调用',
		'template' => '模板编辑',
		'backup' => '数据备份',
		'stat' => '统计更新',
		'cron' => '计划任务'
	); ?>
<ul id="menu">
<li<?=$menuactive['index']?>><a href="admincp.php">管理平台</a></li>
<?php if(is_array($cmenus)) { foreach($cmenus as $value) { ?>
<li<?=$menuactive[$value]?>><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
</ul>
</div>
<div id="content">


<div class="mainarea">
<div class="maininner">

<form method="get" action="admincp.php">

<div class="block style4">
<table cellspacing="3" cellpadding="3">

<?php if($allowmanage) { ?>
<tr><th>作者UID</th><td><input type="text" name="uid" value="<?=$_GET['uid']?>"></td>
<th>作者名</th><td><input type="text" name="username" value="<?=$_GET['username']?>"></td>
</tr>
<?php } ?>
<tr><th>事件类型</th><td colspan="3"><input type="text" name="type" value="<?=$_GET['type']?>"></td>
</tr>
<tr><th>发布时间</th><td colspan="3">
<input type="text" name="dateline1" value="<?=$_GET['dateline1']?>" size="10"> ~
<input type="text" name="dateline2" value="<?=$_GET['dateline2']?>" size="10"> (YYYY-MM-DD)
</td></tr>

<tr><th>结果排序</th>
<td colspan="3">
<select name="orderby">
<option value="">默认排序</option>
<option value="dateline"<?=$orderby['dateline']?>>发布时间</option>
</select>
<select name="ordersc">
<option value="desc"<?=$ordersc['desc']?>>递减</option>
<option value="asc"<?=$ordersc['asc']?>>递增</option>
</select>
<select name="perpage">
<option value="20"<?=$perpages['20']?>>每页显示20个</option>
<option value="50"<?=$perpages['50']?>>每页显示50个</option>
<option value="100"<?=$perpages['100']?>>每页显示100个</option>
<option value="1000"<?=$perpages['1000']?>>一次处理1000个</option>
</select>
<input type="hidden" name="ac" value="share">
<input type="submit" name="searchsubmit" value="搜索" class="submit">
</td>
</tr>
</table>
</div>
</form>


<?php if($list) { ?>
<form method="post" action="admincp.php?ac=share">
<div class="bdrcontent">

<?php if($perpage>100) { ?>
<p>总共有满足条件的数据 <strong><?=$count?></strong> 个</p>
<?php if(is_array($list)) { foreach($list as $value) { ?>
<input type="hidden" name="ids[]" value="<?=$value['sid']?>">
<?php } } ?>

<?php } else { ?>

<table cellspacing="0" cellpadding="0" class="formtable">
<?php if(is_array($list)) { foreach($list as $value) { ?>
<tr><td width="25"><input type="checkbox" name="ids[]" value="<?=$value['sid']?>"></td>
<td>
<p><a href="admincp.php?ac=share&uid=<?=$value['uid']?>"><?=$value['username']?></a> <?=$value['title_template']?> &nbsp;<?php echo sgmdate('Y-m-d H:i', $value[dateline]); ?></p>
<?=$value['body_template']?>
</td></tr>
<?php } } ?>
</table>
<?php } ?>
</div>
<div class="footactions">
<?php if($perpage<=100) { ?><input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">全选<?php } ?>
<input type="hidden" name="mpurl" value="<?=$mpurl?>">
<input type="submit" name="deletesubmit" value="批量删除" onclick="return confirm('本操作不可恢复，确认删除？');" class="submit">

<?=$multi?>
</div>

</form>
<?php } else { ?>
<div class="bdrcontent">
<p>指定条件下还没有数据</p>
</div>
<?php } ?>
</div>
</div>

<div class="side">
<?php if($menus['0']) { ?>
<div class="block style1">
<h2>常规设置</h2>
<ul class="folder">
<?php if(is_array($acs['0'])) { foreach($acs['0'] as $value) { ?>
<?php if($menus['0'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>
<?php } ?>

<div class="block style1">
<h2>批量管理</h2>
<ul class="folder">
<?php if(is_array($acs['3'])) { foreach($acs['3'] as $value) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
<?php if(is_array($acs['1'])) { foreach($acs['1'] as $value) { ?>
<?php if($menus['1'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>

<?php if($menus['2']) { ?>
<div class="block style1">
<h2>高级应用</h2>
<ul class="folder">
<?php if(is_array($acs['2'])) { foreach($acs['2'] as $value) { ?>
<?php if($menus['2'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
<?php if($menus['0']['config']) { ?><li><a href="<?=UC_API?>" target="_blank">UCenter</a></li><?php } ?>
</ul>
</div>
<?php } ?>
</div>

</div>
<div id="footer">
<p>
Powered by <a  href="http://u.discuz.net" target="_blank" title="<?php echo X_RELEASE; ?>">UCenter Home</a> <?php echo X_VER; ?> 
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>, 
Copyright 2001-2008 <a  href="http://www.comsenz.com/" target="_blank">Comsenz Inc.</a>
</p>
<p><?php echo debuginfo(); ?></p>
</div>
</div>
</body>
</html>
<?php ob_out(); ?>
<?php subtplcheck('admin/tpl/share|admin/tpl/header|admin/tpl/side|admin/tpl/footer', '1226931382', 'admin/tpl/share'); ?>